import request from "../../../../assets/js/request";

/**
 * 根据搜索获取数据
 * @param searchData
 * @returns {*}
 */
export function searchData(searchData){
  return request({
    url: "/inspection/getSearchData",
    method: "POST",
    data: searchData,
    headers:{
      "Content-Type" : "application/json"
    }
  })
}

/**
 * 删除巡查信息
 * @param ids
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export function deleteInspection(ids,mUuids){
  return request({
    url: "/inspection/deleteInspection",
    method: 'Post',
    data: {
      ids: ids,
      mUuids: mUuids
    },
    headers:{
      "Content-Type" : "application/json"
    }
  })
}
